using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace WellmeadowsHospital
{
    public partial class Report : DevExpress.XtraReports.UI.XtraReport
    {
        public Report()
        {
            InitializeComponent();
        }
        public void Load(string staffid, string chargenurse)
        {
           
            lblChargeNurse.Text = chargenurse;
            lblLocation.DataBindings.Add("Text", DataSource, "Location");
            lblStaffID.Text = staffid;
            lblTelExtn.DataBindings.Add("Text", DataSource, "TelExtn");
            lblWardName.DataBindings.Add("Text", DataSource, "WardName");
            lblWardID.DataBindings.Add("Text", DataSource, "WardID");

            colStaffID.DataBindings.Add("Text", DataSource, "StaffID");
            colName.DataBindings.Add("Text", DataSource, "Name");
            colAddress.DataBindings.Add("Text", DataSource, "Address");
            colTel.DataBindings.Add("Text", DataSource, "Tel");
            colPosition.DataBindings.Add("Text", DataSource, "Position");
            colShift.DataBindings.Add("Text", DataSource, "Shift");
            //lbldate.DataBindings.Add("Value", DataSource, "DateBegin");
            XRBinding b = new XRBinding("Text", DataSource, "DateBegin", "{0:MM/dd/yyyy}");
            lbldate.DataBindings.Add(b);


        }
    }
}
